<template>
  <div>
    <div class="ok-white ok-info" style="box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 10px">
      <div class="ok-box-flex">
        <div class="ok-box-center-left" style=" padding-left: 10px;">
          <div style="padding-top: 9px; padding-right: 10px;margin-right: 5px;cursor: pointer;" @click="back()" v-if="btnReturn">
            <i class="el-icon-back" style="height: 20px;width: 20px;"></i>
          </div>
          <div style=" font-size: 16px">{{title}}</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name:'TitleBar',
  props: {
    title: {
      type: String,
      default: ""
    },
    type: {
      default: "page"
    },
    btnReturn: {
      default: true
    },
  },
  mounted() {
  },
  methods:{
    back(){
      this.$router.go(-1);
    }
  }
}
</script>